<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
<head>
<meta charset="UTF-8">
<title>牛市宝-共富</title>
<jsp:include page="/include/wchat/head.jsp"></jsp:include>
<script src="/v2/local/js/common/global-1.1.0.min.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="/v2/wchat/resrc/css/peizi.css">
<link href="/v2/local/css/peizi/dialog.css" type="text/css"
			rel="stylesheet">
</head>
<body>
<div id="header"> <a href="/wchatAccount.do" class="backto">返回</a>
  <h1 class="title-sub">牛市宝</h1>
</div>
<div id="pzinfo-wrap">
<s:if test="#request.voList.size>0">
<s:set name="counts" value="(pageBean.pageNum-1) * pageBean.pageSize"/>
<s:iterator value="#request.voList" var="bean" status="s">
  <div class="items">
  	<table class="pz-table">
          <tbody>
          	<tr><td colspan="2" class="pz-table-title">配资<s:property value="#s.count+#counts"/></td></tr>
            <tr>
              <th>保证金(￥)</th>
              <td>￥<fmt:formatNumber value="${bean.amount}" pattern="#,##0.00#"></fmt:formatNumber></td>
            </tr>
            <tr>
              <th>配资金额(￥)</th>
              <td>￥<fmt:formatNumber value="${bean.amount*bean.level}" pattern="#,##0.00#"></fmt:formatNumber></td>
            </tr>
            <tr>
              <th>总操盘资金(￥)</th>
              <td>￥<fmt:formatNumber value="${bean.amount+bean.amount*bean.level}" pattern="#,##0.00#"></fmt:formatNumber></td>
            </tr>
            <tr>
              <th>申请日期</th>
              <td>${bean.applyTime}</td>
            </tr>
            <tr>
              <th>使用期限 </th>
              <td>${bean.selDeadline }个月</td>
            </tr>
            <tr>
              <th>借款月利率</th>
              <td>${bean.rate}%</td>
            </tr>
            <tr>
              <th>状态</th>
              <td>
              	<s:if test="#bean.infoStatus == 0">申请中</s:if>
              	<s:if test="#bean.infoStatus == 1">已配资</s:if>
              	<s:if test="#bean.infoStatus == 2">审核不通过</s:if>
              	<s:if test="#bean.infoStatus == 3">已到期</s:if>
              </td>
            </tr>
          </tbody>
        </table>
  </div>
  </s:iterator>
  <div class="operate-button"> <a href="/wchatMatchEndowmentIndex.do" class="btn">申请更多牛市宝</a> </div>
  <div class="page">
		<s:if test="#request.currentPage  <= 1">
			<span class="disabled pre"> 上一页 </span>
		</s:if>
		<s:else>
			<a href="javascript:;"
				onclick="return $pager.go(${currentPage-1});" class="pre">上一页
			</a>
		</s:else>
		<s:if test="#request.currentPage == #request.totalPageNum">
			<span class="disabled next"> 下一页 </span>
		</s:if>
		<s:else>
			<a href="javascript:;"
				onclick="return $pager.go(${currentPage + 1});" class="next">
				下一页 </a>
		</s:else>
	</div>
</s:if>
<s:else>
	<div class="no-project">
 	   	<div class="inner">暂无内容</div>
   	</div>
</s:else>
<form id="pageSearchForm" name="pageSearchForm" action="" method="post"></form>
<script type="text/javascript">
//分页js形式带参请求
var $pager = (function(manager) {
 			var _params = {};
 			manager.go = function(page) {
     			var htmlStr = '<input type="hidden" name="page" value="' + page + '" />';
     			for (var key in _params) {
         			htmlStr += '<input type="hidden" name="' + key + '" value="' + _params[key] + '" />';
     			}
     			$("#pageSearchForm").html(htmlStr).submit();
 			};
 			manager.create = function(params) {
     			_params = params;
 			};
 			return manager;
} ($pager || {}));
</script>
  
</div>

<jsp:include page="/include/wchat/footer.jsp"></jsp:include>

</body>
</html>